package membermanage.model.dao;

import java.util.List;

import membermanage.dto.AuthorityDTO;

import org.springframework.orm.ibatis.SqlMapClientTemplate;

public class AuthorityDAO {
	private SqlMapClientTemplate client;
	
	public AuthorityDAO(SqlMapClientTemplate client){
		this.client = client;
	}
	
	public List getAllAuthority() {
		return client.queryForList("authority.selectAllAuthority");
	}
	
	public void insertAuthority(AuthorityDTO dto){
		client.insert("authority.insertAuthority", dto);
	}
}
